const { config } = require('./common')

const { apiPrefix } = config
let database = {
	data:[
	  {
	    id: '1',
	    title: '管理员',
	    desc: '管理员管理员',
	    state:1
	  },
	  {
	    id: '2',
	    title: '开发',
	    desc: '开发开发开发开发',
	    state:1
	  },
	  {
	    id: '3',
	    title: '测试',
	    desc: '测试测试测试测试测试',
	    state:1
	  },
	  {
	    id: '4',
	    title: '主编',
	    desc: '主编主编主编主编主编主编',
	    state:2
	  },
	],
	total:4
}

module.exports = {

  [`GET ${apiPrefix}/roles`] (req, res) {
    res.status(200).json(database)
  },
}
